Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SITL: support up to 32 rotors in a frame #29015

Merged

Conversation

peterbarker
Copy link
Contributor

Extracted from #27598

@@ -133,9 +137,9 @@ class Frame {
Vector3f moment_of_inertia;

// if zero will no be used
Copy link
Contributor

@tpwrules tpwrules Jan 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// if zero will no be used
// if the motor position is zero, it will not be used

Presumably?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no idea. Pre-existing, and I wonder if it made sense to the original author or whether the relevant code has gone away!

... also, I'm not sure your new suggestion is accurate, given https://github.com/ardupilot/ardupilot/blob/master/libraries/SITL/SIM_Motor.cpp#L188

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove it then? How do we note frames with less than 32 motors?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just remove it then? How do we note frames with less than 32 motors?

Removed it.

My guess is that we got num_motors as a thing and started to magically generate some of the motor layouts.

@peterbarker peterbarker force-pushed the pr/sim-frame-max-actuators branch from 98fb310 to c5efa05 Compare January 6, 2025 03:26
@peterbarker peterbarker merged commit bb96db5 into ArduPilot:master Jan 6, 2025
99 checks passed
@peterbarker peterbarker deleted the pr/sim-frame-max-actuators branch January 7, 2025 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants